package com.zx.jhpt.po;

import javax.persistence.Column;
import javax.persistence.Embeddable;

/**
 * ReplyUserId entity. @author MyEclipse Persistence Tools
 */
@Embeddable
public class ReplyUserId implements java.io.Serializable {

	// Fields

	private String replyid;
	private String cycle;
	private String userid;

	// Constructors

	/** default constructor */
	public ReplyUserId() {
	}

	/** full constructor */
	public ReplyUserId(String replyid, String cycle, String userid) {
		this.replyid = replyid;
		this.cycle = cycle;
		this.userid = userid;
	}

	// Property accessors

	@Column(name = "REPLYID", nullable = false, length = 64)
	public String getReplyid() {
		return this.replyid;
	}

	public void setReplyid(String replyid) {
		this.replyid = replyid;
	}

	@Column(name = "CYCLE", nullable = false, length = 64)
	public String getCycle() {
		return this.cycle;
	}

	public void setCycle(String cycle) {
		this.cycle = cycle;
	}

	@Column(name = "USERID", nullable = false, length = 64)
	public String getUserid() {
		return this.userid;
	}

	public void setUserid(String userid) {
		this.userid = userid;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof ReplyUserId))
			return false;
		ReplyUserId castOther = (ReplyUserId) other;

		return ((this.getReplyid() == castOther.getReplyid()) || (this
				.getReplyid() != null && castOther.getReplyid() != null && this
				.getReplyid().equals(castOther.getReplyid())))
				&& ((this.getCycle() == castOther.getCycle()) || (this
						.getCycle() != null && castOther.getCycle() != null && this
						.getCycle().equals(castOther.getCycle())))
				&& ((this.getUserid() == castOther.getUserid()) || (this
						.getUserid() != null && castOther.getUserid() != null && this
						.getUserid().equals(castOther.getUserid())));
	}

	public int hashCode() {
		int result = 17;

		result = 37 * result
				+ (getReplyid() == null ? 0 : this.getReplyid().hashCode());
		result = 37 * result
				+ (getCycle() == null ? 0 : this.getCycle().hashCode());
		result = 37 * result
				+ (getUserid() == null ? 0 : this.getUserid().hashCode());
		return result;
	}

}